import Vue from 'vue'
import vuex from 'vuex'
import userInfo   from './modules/userInfo.js'
import navHeader   from '@/components/nav-header/nav-header.js'

Vue.use(vuex)

export default new vuex.Store({
    state: {
        show: false,
        routerTabs: {
            selected: '/home',
            list: [{
                name: '首页',
                path: '/home'
            }, {
                name: '日程',
                path: '/oa/agenda/agenda'
            }, {
                name: '任务',
                path: '/oa/agenda/mission'
            }, {
                name: '组织架构',
                path: '/set/organ'
            }]
        },
        theme: {
            bgColor: '#3d3d3d'
        }
    },
    getters: {

    },
    mutations: {

    },
    actions: {

    },
    modules:{
       navHeader,
       userInfo
    }
})
